package com.example.ci_cd_gitee_test1.helloworld;

import org.springframework.stereotype.Service;

@Service
public class Hello {
    public String sayHello(String name) {
        if (name == null || name.trim().isEmpty()) {
            return "hello, world!";
        }
        return "Hello, " + name + "!";
    }
}
